home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Utilities / Util.r < prev    next >
Encoding:
Text File  |  1996-04-22  |  4.5 KB  |  246 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Util.r
  3.  
  4.     Contains:    resources for Info Utilties
  5.  
  6.     Owned by:    Tantek Çelik
  7.  
  8.     Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <9>    10/16/95    CC        GM 1292157: Changed "No Kinds" to
  13.                                     "Unknown"; "None Available" to "None for
  14.                                     this Kind".
  15.          <8>     10/4/95    jpa        Include UtilCmmn.r [1285767]
  16.          <7>     9/20/95    TÇ        1285201 GM: Use
  17.                                     alertPositionParentWindowScreen for dialogs
  18.          <6>      9/5/95    JP        1250152: Center “can't replace” alert
  19.                                     properly
  20.          <5>     6/19/95    jpa        Removed "Arcane Info" button from SOM error
  21.                                     dialog. [1258206]
  22.          <4>     5/25/95    jpa        Added SOM error dialogs. [1253380]
  23.          <3>      5/7/95    TÇ        1221281 BB:Need to move No
  24.          <2>     4/27/95    TÇ        1223529 BB: ODSetPOName and ODSetIconFamily
  25.                                     should tweak file in root part case (Did
  26.                                     name piece)
  27.          <1>     4/25/95    JP        first checked in
  28.  
  29.     To Do:
  30.     In Progress:
  31.         
  32. */
  33.  
  34. #define SystemSevenOrBetter 1            // we want the extended types
  35. #define    SystemSevenOrLater    1            // Types.r uses this variable
  36.  
  37. #include "Types.r"
  38.  
  39. #include "UtilDefs.h"
  40.  
  41. #include "UtilCmmn.r"                    // More resources
  42.  
  43. //-------------------------------------------------------------------------------------
  44. // Strings
  45. //-------------------------------------------------------------------------------------
  46.  
  47. resource 'STR ' (kODPartInfoStrUnknownID, purgeable) {
  48.     "Unknown"
  49. };
  50.  
  51. resource 'STR#' (kODInfoUtilStrsID, purgeable) {
  52.     {
  53.          "Unknown"
  54.         ;"None for this Kind"
  55.     }
  56. };
  57.  
  58. //-------------------------------------------------------------------------------------
  59. // Name conflict dialogs
  60. //-------------------------------------------------------------------------------------
  61.  
  62. resource 'DLOG' (kNameConflictDlgID) {
  63.     {40, 40, 142, 347},
  64.     movableDBoxProc,
  65.     invisible,
  66.     noGoAway,
  67.     0x0,
  68.     kNameConflictDlgID,
  69.     "Name Conflict",
  70.     alertPositionParentWindowScreen
  71. };
  72.  
  73. resource 'DITL' (kNameConflictDlgID) {
  74.     {    /* array DITLarray: 3 elements */
  75.         /* [1] kNameConflictCancelBtn */
  76.         {68, 157, 88, 219},
  77.         Button {
  78.             enabled,
  79.             "Cancel"
  80.         },
  81.         /* [2] kNameConflictReplaceBtn */
  82.         {68, 233, 88, 295},
  83.         Button {
  84.             enabled,
  85.             "Replace"
  86.         },
  87.         /* [3] kNameConflictTextItem */
  88.         {10, 62, 58, 297},
  89.         StaticText {
  90.             disabled,
  91.             "A document named \"^0\" already exists. Do"
  92.             " you want to replace it?"
  93.         },
  94.         /* [4] kNameConflictDefaultButtonItem */
  95.         {65, 154, 92, 222},
  96.         UserItem {
  97.             disabled
  98.         },
  99.         /* [5] */
  100.         {10, 20, 42, 52},
  101.         Icon {
  102.             disabled,
  103.             2
  104.         }
  105.  
  106.     }
  107. };
  108.  
  109.  
  110. resource 'ALRT' (kFilelockedAlrtID) {
  111.     {40, 40, 141, 389},
  112.     kFilelockedAlrtID,
  113.     {    /* array: 4 elements */
  114.         /* [1] */
  115.         OK, visible, sound1,
  116.         /* [2] */
  117.         OK, visible, sound1,
  118.         /* [3] */
  119.         OK, visible, sound1,
  120.         /* [4] */
  121.         OK, visible, sound1
  122.     },
  123.     alertPositionParentWindowScreen
  124. };
  125.  
  126. resource 'DITL' (kFilelockedAlrtID) {
  127.     {    /* array DITLarray: 2 elements */
  128.         /* [1] */
  129.         {68, 278, 88, 336},
  130.         Button {
  131.             enabled,
  132.             "OK"
  133.         },
  134.         /* [2] */
  135.         {10, 64, 59, 339},
  136.         StaticText {
  137.             disabled,
  138.             "The existing document \"^0\" is locked or "
  139.             "busy and cannot be replaced."
  140.         },
  141.         /* [3] */
  142.         {65, 275, 91, 339},
  143.         UserItem {
  144.             disabled
  145.         },
  146.         /* [4] */
  147.         {10, 20, 42, 52},
  148.         Icon {
  149.             disabled,
  150.             0
  151.         }
  152.     }
  153. };
  154.  
  155.  
  156. resource 'ALRT' (kSOMErrorAlertID) {
  157.     {40, 40, 142, 318},
  158.     kSOMErrorAlertID,
  159.     {    /* array: 4 elements */
  160.         /* [1] */
  161.         OK, visible, sound1,
  162.         /* [2] */
  163.         OK, visible, sound1,
  164.         /* [3] */
  165.         OK, visible, sound1,
  166.         /* [4] */
  167.         OK, visible, sound1
  168.     },
  169.     alertPositionParentWindowScreen
  170. };
  171.  
  172. resource 'DITL' (kSOMErrorAlertID) {
  173.     {    /* array DITLarray: 4 elements */
  174.         /* [1] */
  175.         {69, 201, 89, 263},
  176.         Button {
  177.             enabled,
  178.             "Quit"
  179.         },
  180.         /* [2] */
  181. /*        {69, 73, 89, 164},
  182.         Button {
  183.             enabled,
  184.             "Arcane Info"
  185.         },
  186. */        /* [3] */
  187.         {10, 72, 58, 265},
  188.         StaticText {
  189.             disabled,
  190.             "Sorry, this document must immediately"
  191.             " quit due to a fatal SOM error."
  192.         },
  193.         /* [4] */
  194.         {10, 20, 42, 52},
  195.         Icon {
  196.             disabled,
  197.             0
  198.         }
  199.     }
  200. };
  201.  
  202. resource 'DLOG' (kSOMErrorDlogID) {
  203.     {40, 40, 220, 472},
  204.     dBoxProc,
  205.     invisible,
  206.     noGoAway,
  207.     0x0,
  208.     kSOMErrorDlogID,
  209.     "",
  210.     alertPositionParentWindowScreen
  211. };
  212.  
  213. resource 'DITL' (kSOMErrorDlogID) {
  214.     {    /* array DITLarray: 4 elements */
  215.         /* [1] */
  216.         {148, 344, 168, 402},
  217.         Button {
  218.             enabled,
  219.             "Quit"
  220.         },
  221.         /* [2] */
  222.         {148, 262, 168, 320},
  223.         Button {
  224.             enabled,
  225.             "Debug"
  226.         },
  227.         /* [3] */
  228.         {8, 72, 135, 413},
  229.         StaticText {
  230.             disabled,
  231.             ""
  232.         },
  233.         /* [4] */
  234.         {10, 20, 42, 52},
  235.         Icon {
  236.             disabled,
  237.             0
  238.         }
  239.     }
  240. };
  241.  
  242. data 'finf' (1004, purgeable) {
  243.     $"0001 0003 0000 0009"                                /* .......Δ */
  244. };
  245.  
  246.